package com.deram.ctin.serv.business.api;

import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.business.entity.BaseUpdateInfo;
import com.deram.ctin.serv.business.entity.BusinessCourt;
import com.deram.ctin.serv.business.filter.BusinessCourtFilter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/13 15:41
 * @version: V1.0
 */
@FeignClient("serv-business")
@RequestMapping("/businessCourtApi")
public interface BusinessCourtApi {

    @PostMapping("/list")
    List<BusinessCourt> list(@RequestBody BusinessCourtFilter param);

    @PostMapping("/save")
    BusinessCourt save(@RequestBody BusinessCourt param);

    @PostMapping("/search")
    PageResult<BusinessCourt> search(@RequestBody BusinessCourtFilter filter,@RequestParam("pageNo") Integer pageNo , @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/delete")
    void delete(@RequestParam("id") Long id);

    @PostMapping("/saveList")
    void saveList(@RequestBody BaseUpdateInfo<BusinessCourt> updateInfo);
}
